package com.demo.config;

import com.demo.controller.info.MovieProduct;
import com.demo.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "movie-server")
public interface MovieFeignClient {

    @PostMapping("/movieserver/movieProduct/selectOneMovieProduct")
    public Result<MovieProduct> selectOneMovieProduct(@RequestParam(required = false)Integer id);
}
